<%@ page language="java" pageEncoding="UTF-8"%>
<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html >
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>

	<h1>
		<a href="${pageContext.request.contextPath }/students/create">添加学生</a>
	</h1>


	<table border="1" width="80%">
		<tr>
			<td>编号</td>
			<td>姓名</td>
			<td>生日</td>
			<td>性别</td>
			<td>操作</td>
		</tr>

		<c:forEach items="${students }" var="student">
			<tr>
				<td>${student.id }</td>
				<td>${student.name }</td>
				<td>${student.birthday }</td>
				<td>${student.gender }</td>
				<td><a
					href="${pageContext.request.contextPath}/students/${student.id }/update">修改</a>
				</td>
				<td><a class="btn_destroy"
					href="${pageContext.request.contextPath}/students/${student.id }/delete">删除</a>
				</td>
			</tr>
		</c:forEach>
	</table>
</body>
<script type="text/javascript" src="${pageContext.request.contextPath}/assets/lib/jquery.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/assets/app/student.js"></script>
</html>